package com.own.business.exam.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BaseCreatePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * ExamRuleQuestion
 *
 * @author chenxueli
 * @date 2021/05/18 14:43:47
 */
@Schema(title = "考试规则题目表" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_rule_question")
public class ExamRuleQuestion extends BaseCreatePo {

    @Schema(title = "规则id")
    private Long fkRuleId;

    @Schema(title = "题目id")
    private Long fkQuestionId;

    @Schema(title = "题目分数")
    private BigDecimal score;

    @Schema(title = "答对一部分的分数")
    private BigDecimal someRightScore;

}
